<?php namespace App\Model;


class AdminUser extends BaseModel {
	//
    /**
     * @param $email
     * @param array $select
     * @return null
     */
    public static function getUserInfoByEmail($email,$select=array())
    {
        if(empty($email)){
            return null;
        }
        $selectFiled = self::getSelectField($select);
        return self::select($selectFiled)
            ->where('email' , '=', $email)
            ->where('status', '=', 0)->first();
    }

}
